import { createSSRApp } from "vue" /// 适应全端 惊醒了处理
import App from "./App.vue"
import { createPinia } from "pinia"
import { createUnistorage } from "pinia-plugin-unistorage"

export function createApp() {
  const app = createSSRApp(App)

  // 创建 Pinia 实例
  const pinia = createPinia()
  // 应用pinia插件
  pinia.use(createUnistorage())

  app.use(pinia)

  return {
    app,
  }
}
